import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate' //引入持久化插件
const pinia = createPinia()

pinia.use(piniaPluginPersistedstate) //使用持久化插件

export default pinia;